<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>活动管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			$('#my').click(function(){
				if(confirm('你确定？')){
					alert(1)
				}
			})
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
			return false;
		}
		
		
		
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="javascript:">活动列表</a></li>
	</ul>
	 <form:form id="searchForm" modelAttribute="tActivityInfo" action="${ctx}/activity/tActivity/list" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>活动名称</th>
				<th>活动时间</th>
				<th>包车价格</th>
				<th>每人价格</th>
				<th>最低参与人数</th>
				<th>门票价格</th>
				<th>操作</th>
			</tr>
		</thead>
		<c:forEach items="${page.list}" var="ActivityInfo">
			<tr>
				<td>${ActivityInfo.cpName}</td>
				<td><fmt:formatDate value="${ActivityInfo.dateFrom}" pattern="yyyy-MM-dd" />   至   <fmt:formatDate value="${ActivityInfo.dateOver}" pattern="yyyy-MM-dd" /></td>
				<td>${ActivityInfo.carPrice}元/辆</td>
				<td>${ActivityInfo.peoplePrice}元/人</td>
				<td>${ActivityInfo.minNum}</td>
				<td>${ActivityInfo.ticket}</td>
				<td>
				    <span ><a  href="${ctx}/activity/tActivity/form?activityId=${ActivityInfo.activityId}">编辑</a></span>
					<span ><a  href="${ctx}/activity/tActivity/joinList?activityId=${ActivityInfo.activityId}">查看参与订单</a></span>
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>